package com.narunas.controller.pages
{
	import com.narunas.model.enum.ProxyEnum;
	import com.narunas.model.pages.ApplicationProxy;
	import com.narunas.view.ApplicationMediator;
	import com.narunas.view.enum.ViewEnum;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class PrepAppCommonAssetsCommand extends SimpleCommand implements ICommand
	{

		
		override public function execute(notification:INotification):void
		{
			super.execute(notification);
			
			facade.registerProxy(new ApplicationProxy(ProxyEnum.APPLICATION_PROXY);
			facade.registerMediator(new ApplicationMediator(ViewEnum.APPLICATION_MEDIATOR, notification.getBody());
			
		}
		
	}
}